<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends CI_Controller {

	public function __construct(){
		parent::__construct();
		
	}

	public function index() {
	
		$data = array();
		$data["nowmenu"]="land";
		$data["role_id"]="1";
		
		$this->load->view('test',$data);
	
	}
	public function index2() {
		$reul = "";
		$query = $this -> db -> query("SELECT * FROM land order by landid desc");
		echo json_encode($query -> result_array());
	}
	public function index3() {
	
		$data = array();
		$data["nowmenu"]="land";
		$this->load->view('test2',$data);
	
	}
}